<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui">

    <f:view contentType="text/html">
        <h:head>
            <f:facet name="first">
                <meta http-equiv="X-UA-Compatible" content="EmulateIE8" />
                <meta content='text/html; charset=UTF-8' http-equiv="Content-Type"/>
                <title>Gym Manager</title>
            </f:facet>

            <link type="text/css" rel="stylesheet" href="#{request.contextPath}/css/default.css" />
            <link type="text/css" rel="stylesheet" href="#{request.contextPath}/css/syntaxhighlighter/syntaxhighlighter.css" />

            <style type="text/css">
                .ui-layout-north {
                    z-index:20 !important;
                    overflow:visible !important;;
                }

                .ui-layout-north .ui-layout-unit-content {
                    overflow:visible !important;
                }
            </style>
        </h:head>


        <h:body>

            <p:layout fullPage="true" >

                <p:layoutUnit id="top" position="north" size="50">

                </p:layoutUnit>

                <p:layoutUnit id="left" position="west" size="150" resizable="true" closable="true" collapsible="true" header="Options" minSize="200">
                <h:form id="formTiredMenu">
                    <p:panelMenu style="width:100%"> 
        				<p:submenu  label="Cadastro">  
            				<p:menuitem value="Aluno" action="#{alunoBean.consultarAluno}" style="font-size:15px;" immediate="true" icon="ui-icon-person" />  
            				<p:menuitem value="Fornecedor" action="#{fornecedorBean.consultarFornecedor}" style="font-size:15px;" immediate="true" icon="ui-icon-person" />  
            				<p:menuitem value="Cidade" action="#{cidadeBean.consultarCidade}" style="font-size:15px;" immediate="true" icon="ui-icon-flag" />
            				<p:menuitem value="Estado" action="#{estadoBean.consultarEstado}" style="font-size:15px;" immediate="true" icon="ui-icon-flag" />
            				<p:menuitem value="País" action="#{paisBean.consultarPais}" style="font-size:15px;" immediate="true" icon="ui-icon-flag" />
            				<p:menuitem value="Produto" action="#{produtoBean.consultarProduto}" style="font-size:15px;" immediate="true" icon="ui-icon-document" />
            				<p:menuitem value="Marca" action="#{marcaBean.consultarMarca}" style="font-size:15px;" immediate="true" icon="ui-icon-document" />
            				<p:menuitem value="Modalidade" action="#{modalidadeBean.consultarModalidade}" style="font-size:15px;" immediate="true" icon="ui-icon-document" />
            				<p:menuitem value="Período" action="#{periodoBean.consultarPeriodo}" style="font-size:15px;" immediate="true" icon="ui-icon-document" />
        				</p:submenu>   
        				<p:submenu label="Avaliação Física">  
            				<p:menuitem value="Avaliação Física" action="#{avaliacaoFisicaBean.consultarAvaliacaoFisica}" style="font-size:15px;" immediate="true" icon="ui-icon-person" />    
        				</p:submenu>     
        				<p:submenu label="Funcional">  
            				<p:menuitem value="Funcionário" action="#{funcionarioBean.consultarFuncionario}" style="font-size:15px;" immediate="true" icon="ui-icon-person" />  
            				<p:menuitem value="Cargo" action="#{cargoBean.consultarCargo}" style="font-size:15px;" immediate="true" icon="ui-icon-suitcase" />  
        				</p:submenu>         		
               		    <p:submenu label="Comercial">  
            				<p:menuitem value="Compra" action="#{compraBean.consultarCompra}" style="font-size:15px;" immediate="true" icon="ui-icon-cart" />  
            				<p:menuitem value="Venda" action="#{vendaBean.consultarVenda}" style="font-size:15px;" immediate="true" icon="ui-icon-cart" />  
            				<p:menuitem value="Forma de Pagamento" action="#{formaPagamentoBean.consultarFormaPagamento}" style="font-size:15px;" immediate="true" icon="ui-icon-document" /> 
            				<p:menuitem value="Condição de Pagamento" action="#{condicaoPagamentoBean.consultarCondicaoPagamento}" style="font-size:15px;" immediate="true" icon="ui-icon-document" /> 
        				</p:submenu>
        				<p:submenu label="Matrícula">  
            				<p:menuitem value="Matrícula" action="#{matriculaBean.consultarMatricula}" style="font-size:15px;" immediate="true" icon="ui-icon-document" />  
            				<p:menuitem value="Plano" action="#{planoBean.consultarPlano}" style="font-size:15px;" immediate="true" icon="ui-icon-document" />  
        				</p:submenu> 
        				<p:submenu label="Financeiro">  
            				<p:menuitem value="Contas a Pagar" action="#{contaPagarBean.consultarContaPagar}" style="font-size:15px;" immediate="true" icon="ui-icon-tag" />  
            				<p:menuitem value="Contas a Receber" action="#{contaReceberBean.consultarContaReceber}" style="font-size:15px;" immediate="true" icon="ui-icon-tag" />  
        				</p:submenu> 
        				
        				
    				</p:panelMenu>  
    </h:form>
                </p:layoutUnit>

                <p:layoutUnit id="center" position="center">
                    <h:form id="formTemplate">

						<ui:insert name="conteudo"></ui:insert>

                    </h:form>
                </p:layoutUnit>

            </p:layout>

            <p:dialog header="Basic Dialog" widgetVar="dlg" modal="true">
                <h:outputText value="Resistance to PrimeFaces is futile!" />
            </p:dialog>

        </h:body>

    </f:view>
</html>